package diamondRingDao.impl;

import diamondRingDao.LoveDao;
import diamondRingEntity.Love;
import tool.BaseDao;

public class LoveDaoImpl extends BaseDao implements LoveDao {
    @Override
    public int updateLove(Love love) {
        int count=0;
        String sql="INSERT INTO truelove(truelove.manName,truelove.womanName,truelove.manCard,truelove.sheBirthday,truelove.dayOne,truelove.dayTwo)\n" +
                "VALUES(?,?,?,?,?,?)";
        Object[] param={love.getManName(),love.getWomanName(),love.getManCard(),love.getSheBirthday(),love.getDayOne(),love.getDayTwo()};
        count=this.executeUpdate(sql,param);
        return count;
    }
}
